home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / sossnt.zip / SOSSNT / DOC / SOSS.TXT < prev    next >
Text File  |  1993-02-27  |  12KB  |  263 lines

  1.  
  2.                                                                  SOSS(1)
  3.  
  4.  
  5.  
  6. NAME
  7.      soss Son of Stan's Server
  8.  
  9. SYNOPSIS
  10.      soss [-rtv] [-b blocksize]
  11.  
  12. DESCRIPTION
  13.      SOSS is a file server conforming to SUN Microsystems' NFS protocol
  14.      version 2. It will run on IBM-PC compatibles under Microsoft
  15.      MS-DOS, using any Ethernet interface supported by Clarkson
  16.      University's packet drivers.  Performance and reliability have been
  17.      significantly enhanced over the original SOS released in 1989.
  18.  
  19.      The file "export.us" must exist in the default directory on the
  20.      server.  The format is similar to Sun NFS's "/etc/exports" as
  21.      defined in exports(5), except that directories on the server side
  22.      are specified in MS-DOS format, ie.  "<drive>:<path name>." SOSS
  23.      will parse this file to learn which filesystems on the local
  24.      machine it will accept mount requests for.  Up to 50 individual
  25.      clients may be specified for any exported directory.
  26.  
  27.      SOSS requires the system clock to be set correctly.  The MS-DOS
  28.      timezone environment variable should be set the way it is under
  29.      Unix.  (E.g., for Eastern Time, use SET TZ=EST5EDT or SET TZ=EDT4;
  30.      daylight savings time isn't handled correctly by the Microsoft C
  31.      library linked with this version.) Note that MS-DOS does not
  32.      understand dates prior to January 1, 1980.  If you have a Network
  33.      Time Server established on your network, you should run PC/IP
  34.      SETCLOCK prior to running SOSS.
  35.  
  36.      Before running SOSS, configure your Ethernet interface card and the
  37.      packet driver software.  Using CUSTOM, set correct parameters (IP
  38.      address, subnet mask, name server and time server addresses) in
  39.      NETDEV.SYS, then add the line "DEVICE=NETDEV.SYS" to CONFIG.SYS,
  40.      and reboot your system.  Run the appropriate packet driver,
  41.      specifying software interrupt vector 0x7e; here is an example:
  42.  
  43.      ni5210 -n 0x7e 5 0x300 0xd000
  44.  
  45.      You can then run NetWare, if desired, and then invoke SOSS.  NOTE:
  46.      SOSS will _not_ run unless the IP address is set, the subnet mask
  47.      is set to something other than 255.255.255.255, NETDEV is loaded,
  48.      and the packet driver is loaded!
  49.  
  50.      There should be a capacity for at least fifteen files to be opened
  51.      at a time.  SOSS caches file handles for faster access during
  52.      reads.
  53.  
  54.      File names in filesystems mounted with SOSS are limited to eight
  55.      characters, with a three character extension.  Attempts to create a
  56.      file with a name not matching the above restrictions will result in
  57.      an error message, NFSERR_NAMETOOLONG, unless the truncation option
  58.      is specified.  All file names are mapped to lowercase.
  59.  
  60.      The owner ID of any directory or file in a SOSS filesystem will
  61.      appear to be that of the user accessing it.  Files have three
  62.      possible modes:  regular files, which are global read, write and
  63.      executable, read only, which are global read and executable, and
  64.      subdirectories, which are global read, write and executable.
  65.      Chmod(1) may not work as expected with SOSS files, and chown(1)
  66.      will not work at all.
  67.  
  68.      An SOSS filesystem may be mounted by mount(1).  On the client
  69.      system's mount command line, a filesystem is specifed by the
  70.      sequence "/drive/directory." On the server side, a root directory
  71.      may be exported by using the form "c:\"; a subdirectory may be
  72.      exported using the form "c:\foo".  The rsize and wsize parameters
  73.      must be specified less than or equal to 1024 bytes.  Here is an
  74.      example of a typical mount command issued on a System V client
  75.      system (be sure to check the exact command syntax on your system;
  76.      the '-f' option under SunOS, for example, does a "fake" mount):
  77.  
  78.      # mount -f NFS,intr,rsize=1024,wsize=1024 dosbox:/c /usr/soss
  79.  
  80.      If you modify the EXPORT.US file, you should remove the INODE.DMP
  81.      file before restarting the server, and unmount/remount any exported
  82.      filesystems on each client.  In general, if you remove INODE.DMP,
  83.      you should remount the filesystems from the client side, in order
  84.      to get rid of any stale file handles.
  85.  
  86.      One product you may wish to use in conjunction with SOSS, if you
  87.      are using it to export a hard drive physically connected to the
  88.      SOSS server PC, is a disk cache which keeps data blocks in extended
  89.      memory.  This functionality was not added to SOSS itself due to the
  90.      low cost of high-quality commercial products like PCKWIK.
  91.  
  92. PREREQUISITES
  93.      The basic hardware and software requirements for SOSS are as
  94.      follows:
  95.  
  96.      1.   The Clarkson University packet drivers, configured for your
  97.           Ethernet board.  (These are available via anonymous ftp on
  98.           sun.soe.clarkson.edu plus other sites which carry SOSS.)
  99.  
  100.      2.   A 286- or 386-based PC.  (It may work with an XT.)
  101.  
  102.      3.   A single Ethernet card which is supported by Clarkson; this
  103.           includes most popular products.
  104.  
  105.      4.   Another system with NFS client support (DOS, Unix, VAX/VMS,
  106.           VxWorks, or whatever) and TCP/IP.
  107.  
  108.      5.   Some free disk space (usually well under 0.5 megabytes) on the
  109.           default disk drive, for maintaining the inode list.
  110.  
  111. OPTIONS
  112.  
  113.      -b blocksize
  114.           If the default block size of 1024 is too large for your
  115.           system, you can specify a lower value by using the -b option.
  116.  
  117.      -r   The -r option causes all exported filesystems to be read only.
  118.  
  119.      -t   To suppress filename-too-long errors when a client system
  120.           specifies a filename longer than the eight-point-three
  121.           characters allowable under DOS, use the -t (silently truncate)
  122.           option.
  123.  
  124.      -v   The -v option causes SOSS to announce successful completion of
  125.           each NFS request (verbose mode).  SOSS normally announces only
  126.           errors and mount requests.
  127.  
  128. FILES
  129.      These files should exist in the default directory from which the
  130.      server was started:
  131.  
  132.      export.us
  133.           list of exported filesystems and clients.  If you specify a
  134.           client list, be sure you are running a domain name server and
  135.           that its IP address has been provided in NETDEV.SYS.
  136.  
  137.      inode.dmp
  138.           index node information for crash recovery.
  139.  
  140.      novell.id
  141.           UID mapping for Novell filesystems (not supported).
  142.  
  143.      netdev.sys
  144.           device configuration file for PC/IP, set up for your system
  145.           using custom.exe.  (A device entry for this file must be
  146.           placed in config.sys.)
  147.  
  148. BUGS AND LIMITATIONS
  149.  
  150.      -    Portmapper and mount daemons are incomplete.  See below.
  151.  
  152.      -    The portmapper operates on datagrams.  TCP requests are not
  153.           supported.
  154.  
  155.      -    The server crashes as soon as about 7,500 inodes are created.
  156.  
  157.      -    NFS_RENAME cannot rename directories, and cannot move files
  158.           from one directory to another.
  159.  
  160.      -    Inodes are not recycled as files are deleted.
  161.  
  162.      -    A filename beginning with dot is unsupported, and the 'rm'
  163.           command under AIX creates such files.
  164.  
  165.      -    The server requires a dedicated PC and does not use extended
  166.           memory.
  167.  
  168. DEBUGGING
  169.      A set of debugging macros is available to help you in debugging
  170.      run-time problems or to provide useful diagnostics when modifying
  171.      SOSS source code.  This feature uses two environment variables:
  172.      NFSDEBUG and DEBUGFILE.  By default, debugging is disabled; you can
  173.      selectively enable trace messages by setting NFSDEBUG to a list of
  174.      flags as follows:
  175.  
  176.      *rpctrace - RPC-level messages
  177.      mountd - mount requests
  178.      nfserr - error conditions for certain requests
  179.      nfsdebug - miscellaneous debugging information
  180.      nfsdisp - main NFS dispatcher (like SOSS -v)
  181.      nfslookup - file lookups
  182.      nfsread - file reads
  183.      nfswrite - file writes
  184.      *nfstime - timing information
  185.      *inode - inode information
  186.  
  187.      Asterisked items are not used in the released version.  Debugging
  188.      output goes to the console display unless DEBUGFILE is set to a
  189.      file or device name.  If you want all trace messages, set
  190.      NFSDEBUG=all; if you want all but a few, you can use negated flags,
  191.      as in "set NFSDEBUG=all;-nfsread;-nfswrite".
  192.  
  193. REQUESTS
  194.  
  195.      "Port Mapper Requests"
  196.      Only one call is supported:  PMAPPROC_GETPORT.  The port mapper
  197.      knows of only the NFS and mount daemon ports.  In version two of
  198.      the NFS protocol, NFS port is bound to 2049.  This is a bug in the
  199.      NFS protocol which Sun Microsystem claims it will fix in the near
  200.      future.
  201.  
  202.      "Mount Daemon Requests"
  203.      Three calls are supported:  MOUNTPROC_MOUNT, MOUNTPROC_UMOUNT, and
  204.      MOUNTPROC_EXPORT.  These reply to mount and unmount requests for
  205.      specified filesystems.  The MOUNTPROC_EXPORT function provides a
  206.      list of exported file systems (in Unix-style syntax), but does not
  207.      include the list of authorized clients for each.
  208.  
  209.      "NFS Server Requests"
  210.      SOSS supports the whole range of valid requests for version two of
  211.      the NFS protocol, except NFSPROC_READLINK, NFSPROC_LINK and
  212.      NFSPROC_SYMLINK.  MS-DOS does not support links.  This is a list of
  213.      requests:
  214.  
  215.      Procedure 0: NFSPROC_NULL /* for server response and timing */
  216.      Procedure 1: NFSPROC_GETATTR /* get file attributes */
  217.      Procedure 2: NFSPROC_SETATTR /* set file attributes */
  218.      Procedure 3: NFSPROC_ROOT /* obsolete em not supported */
  219.      Procedure 4: NFSPROC_LOOKUP /* lookup file in directory */
  220.      Procedure 5: NFSPROC_READLINK /* not supported */
  221.      Procedure 6: NFSPROC_READ /* read from file */
  222.      Procedure 7: NFSPROC_WRITECACHE /* obsolete em not supported */
  223.      Procedure 8: NFSPROC_WRITE /* write to file */
  224.      Procedure 9: NFSPROC_CREATE /* create file */
  225.      Procedure 10:  NFSPROC_REMOVE /* remove file */
  226.      Procedure 11:  NFSPROC_RENAME /* rename a file */
  227.      Procedure 12:  NFSPROC_LINK /* not supported */
  228.      Procedure 13:  NFSPROC_SYMLINK /* not supported */
  229.      Procedure 14:  NFSPROC_MKDIR /* make directory */
  230.      Procedure 15:  NFSPROC_RMDIR /* remove directory */
  231.      Procedure 16:  NFSPROC_READDIR /* read directory */
  232.      Procedure 17:  NFSPROC_STATFS /* status of filesystem */
  233.  
  234.  
  235. COMMENTS
  236.      Comments and bugs should be addressed to:
  237.      rbraun@spdcc.com, stan@cs.uiuc.edu, or stan@lbl-csam.arpa
  238.  
  239. AUTHORS
  240.      See-Mong Tan, Harvard Holmes, Craig Eades, Rich Braun
  241.  
  242. SEE ALSO
  243.      d2x(1), x2d(1), nfs(4p), nfsd(8), mount(1), mount(8), umount(1),
  244.      exports(5)
  245.  
  246.      "A Low-Cost Unix/DOS Network Solution for Software Engineering",
  247.      Richard Braun (rbraun@spdcc.com), Kronos, Inc., April 1991.
  248.  
  249.      "Network File System Protocol Specification", RFC-1094, Bill
  250.      Nowicki (nowicki@sun.com), Sun Microsystems Inc., March 1989.
  251.  
  252.      "Networking on the Sun Workstation", Sun Part No.  800-1324-03.
  253.  
  254.      "Packet Drivers Made Simple", Joe R. Doupnik (jrd@cc.usu.edu), Utah
  255.      State University, January 1990.
  256.  
  257.      "PC/IP User's Guide", Jerome H. Saltzer and John L. Romkey,
  258.      Massachusetts Institute of Technology Laboratory for Computer
  259.      Science, March 1986.
  260.  
  261.      "User Documentation for the Packet Driver Collection", Russ Nelson,
  262.      Clarkson University (nelson@clutx.clarkson.edu).
  263.